Skip to main content

Monthly Rebates (MSF) Export

1. Overview

This CSV export provides details about usage rebates (MSF) sent to Chargebee. It records rebate values linked to subscriptions, billing references, leases, customers, service units, and accounts.

Exports are produced on the first day of each month and are used by the accounts department for internal reconciliation of rebates with those recorded in Chargebee.

1.1 File Characteristics

  • Format: CSV (Comma-Separated Values)
  • Encoding: UTF-8
  • Delimiter: Comma (,)
  • Quote Character: Double quotes (")
  • Header Row: Present (Row 1)

2. File Structure

2.1 Column Schema

Column NamePositionData TypeRequiredDescription
subscriptionIdType1String (2 chars)YesType identifier for the subscription (CV or BV)
subscriptionId2String (15 chars)YesComplete subscription identifier
billingRefId3String (13 chars)YesBilling reference identifier (suffix of subscriptionId)
leaseId4String (20 chars)YesUnique lease identifier
subCustomerId5String (20 chars)YesSub-customer identifier
serviceUnitId6String (20 chars)YesService unit identifier
accountId7String (20 chars)YesAccount identifier
rebate8IntegerYesRebate amount (in pence)

2.2 Column Order

Columns must appear in the exact order specified above. Reordering columns will cause data misalignment.


3. Field Specifications

Field NameTypeLengthFormat/PatternRequiredValues/OptionsUniquenessExampleNotes/Validation
subscriptionIdTypeString (Fixed Length)2 charactersUppercase lettersYes
  • CV - Commercial Vehicle
  • BV - Business Vehicle
N/ACV, BVMust be one of the allowed values
subscriptionIdString (Fixed Length)15 charactersAlphanumericYesN/AUnique per subscriptionCVDIHA9Z9M1FSE, BVHAH4UVJKZNI9Pattern: subscriptionIdType + billingRefId
Must start with value from subscriptionIdType column
billingRefIdString (Fixed Length)13 charactersAlphanumericYesN/AN/ADIHA9Z9M1FSE, HAH4UVJKZNI9Must match the suffix of subscriptionId (after removing 2-character prefix)
leaseIdString (Variable Length)Up to 20 characters (typical)Alphanumeric (mixed case)YesN/ANot guaranteed (can repeat)VxDperM0XgVhdNcadsSc, W5KMCELkcDHXV5t3aTvcLease ID for the associated rebate
subCustomerIdString (Variable Length)Up to 20 characters (typical)Alphanumeric (mixed case)YesN/ANot guaranteed (can repeat)e2KmJW2erADXX1Tnt7GM, oPdDbzfGJcYoYeEdRtvASub-customer ID for the associated rebate
serviceUnitIdString (Variable Length)Up to 20 characters (typical)Alphanumeric (mixed case)YesN/AExpected unique per rowAP3gEMIeVAD4P5lLj8Xd, BPn0hg3SbNdbhj05magXService Unit ID for the associated rebate
accountIdString (Variable Length)Up to 20 characters (typical)Alphanumeric (mixed case)YesN/ANot guaranteed (can repeat)HC0ZuDEwhHDbgZiA7zXd, C1NVJDmD9JifiT7DAizgAccount ID for the associated rebate
rebateIntegerN/ANumeric, no decimal placesYesPositive integers (≥ 0)N/A2401, 62840, 35314Unit: Smallest currency unit (pence)

4. Data Relationships

4.1 Composite Key Relationships

  • subscriptionId = subscriptionIdType + billingRefId
  • Each row represents a unique rebate record

5. Sample Data

5.1 Sample Row (CV Type)

"CV","CVDIHA9Z9M1FSE","DIHA9Z9M1FSE","VxDperM0XgVhdNcadsSc","e2KmJW2erADXX1Tnt7GM","AP3gEMIeVAD4P5lLj8Xd","HC0ZuDEwhHDbgZiA7zXd",2401

5.2 Sample Row (BV Type)

"BV","BVHAH4UVJKZNI9","HAH4UVJKZNI9","W5KMCELkcDHXV5t3aTvc","oPdDbzfGJcYoYeEdRtvA","BPn0hg3SbNdbhj05magX","C1NVJDmD9JifiT7DAizg",62840

6. File Naming Convention

  • Format: chargebee_usage_rebates_YYYY_MM.csv
  • Example: chargebee_usage_rebates_2025_10.csv
  • Indicates monthly export for October 2025

7. File Generation & Delivery

  • The export file is created on the first day of each month at 06:00.
  • After generation, the file is sent via email to visn.accounts@digitalinnk.com.

Status: Accepted
Category: Protected
Authored By: Vishwa on Nov 21, 2024
https://myvisn.atlassian.net/browse/VN-21891